﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GuanYijia.Application
{
    public class YSRootobject
    {
        public Node[] nodes { get; set; }
        public Edge[] edges { get; set; }
    }

    public class Node
    {
        public string id { get; set; }
        public string type { get; set; }
        public int x { get; set; }
        public int y { get; set; }
        public Properties properties { get; set; }
        public Text text { get; set; }
    }

    public class Properties
    {
        public string start { get; set; }
        public string CustomRect { get; set; }
        public string PropValue { get; set; }
    }
    public class Text
    {
        public int x { get; set; }
        public int y { get; set; }
        public string value { get; set; }
    }

    public class Edge
    {
        public string id { get; set; }
        public string type { get; set; }
        public string sourceNodeId { get; set; }
        public string targetNodeId { get; set; }
        public Startpoint startPoint { get; set; }
        public Endpoint endPoint { get; set; }
        public Properties1 properties { get; set; }
        public Pointslist[] pointsList { get; set; }
    }

    public class Startpoint
    {
        public int x { get; set; }
        public int y { get; set; }
    }

    public class Endpoint
    {
        public int x { get; set; }
        public int y { get; set; }
    }

    public class Properties1
    {
    }

    public class Pointslist
    {
        public int x { get; set; }
        public int y { get; set; }
    }

    
}
